package com.huluobo.module_travel_policy.repo

import android.transition.TransitionValues
import com.huluobo.appbase.network.BaseReqData
import com.huluobo.appbase.network.RetrofitServiceBuilder
import com.huluobo.module_travel_policy.api.TravelPolicyApi
import com.huluobo.module_travel_policy.bean.PolicyDetailReqBean
import com.huluobo.module_travel_policy.bean.TravelPolicyReqBean

class TravelPolicyRepo {
    private var network = RetrofitServiceBuilder.createService(TravelPolicyApi::class.java)

    suspend fun queryTravelPolicy(
        fromCityId: String,
        toCityId: String
    ): BaseReqData<TravelPolicyReqBean>? {
        network?.let {
            return it.queryTravelPolicy(fromCityId, toCityId)
        }
        return null
    }
}